﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BCGC.BLL.Helper;
using BCGC.BLL.Forum;

public partial class Admin_Forum_add_postCategory : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void imbSave_Click(object sender, EventArgs e)
    {
        if (ForumManager.CreateNewPostCategory(txtCategoryName.Text.Trim(), Convert.ToInt32(txtTotalPost.Text.Trim()), chkIsActive.Checked,Server.HtmlEncode(fckContent.Value)))
        {
            uccResponse.SetSuccessMessage("PostCategory successfuly saved");
        }
        else
        {
            uccResponse.SetFailMessage("Failed to save PostCategory");
        }
    }
}
